<?php

/*
    在相同於 cli-config.php 這個目錄之下

    先產生 yaml , 再由 yaml 產生 entity :
        php /usr/bin/doctrine.php orm:convert-mapping -v --from-database yml ../../tmp/doctrine2_yaml
        php /usr/bin/doctrine.php orm:generate-entities --generate-annotations=true --update-entities=true ../../tmp/doctrine2_entities

*/

include_once '../../gmanager.class.php';
$em = gmanager::get('doctrine2');

$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
    'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
    'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
));

